let $ = layui.jquery;
let jQuery=$;
let SettingData = {};//配置文件参数
let SeleteData = {};//筛选参数
let menu_code = '';
let raw = '';//排序
let InitData={};
let table_config = [
    {
        "title": "全部",
        "code": "",
        "num": 0,
        "on": false,
        "url": "/ruinuo/lists/tabs/",
        "left": {
            "status": 2,
            "title": "",
            "options_id": "",
            "key_field": "",
            "show_field": "",
            "field": "",
            "type": 0,
            "url": {
                "title": "",
                "list": "/common/options/leftlists/?num=",
                "add": "",
                "edit": "",
                "delete": "",
                "width": "",
                "height": ""
            }
        },
        "source": [],
        "header": {
            "menu": [],
            "total": [],
            "button": [],
            "search": []
        },
        "table": {
            "style": 1,
            "parent_id": "parent_id",
            "parent_name": "title",
            "limit": 30,
            "page": true,
            "elem": "datatable",
            "height": "full-130",
            "update": "/ruinuo/lists/upfield/",
            "url": "/ruinuo/lists/lists/",
            "cols": [
                {
                    "field": "name",
                    "title": "名称",
                    "minWidth": 90
                },
                {
                    "field": "num",
                    "title": "编码",
                    "minWidth": 90
                },
                {
                    "field": "order_raw",
                    "title": "排序",
                    "minWidth": 90
                },
                {
                    "field": "style",
                    "title": "风格",
                    "minWidth": 90
                },
                {
                    "field": "page_num",
                    "title": "每页显示数量",
                    "minWidth": 90
                }
            ],
            "button": []
        }
    }
];
let form_config = {
    detail:'/ruinuo/lists/detail/',
    add:'/ruinuo/lists/add/',
    edit:'/ruinuo/lists/edit/',
    label_width:'',
    form_label:'form_right',
    onclick:[
    {
        "tag": "select",
        "field": "style",
        "required": 1,
        "event_val": "3",
        "field_val": "parent_id",
        "event_type": "=",
        "event_field": "tree_field"
    },
    {
        "tag": "select",
        "field": "style",
        "required": 1,
        "event_val": "3",
        "field_val": "title",
        "event_type": "=",
        "event_field": "tree_show_field"
    },
    {
        "tag": "select",
        "field": "is_left",
        "required": 1,
        "event_val": "1",
        "event_type": "=",
        "event_field": "left_title"
    },
    {
        "tag": "select",
        "field": "is_left",
        "required": 1,
        "event_val": "1",
        "event_type": "=",
        "event_field": "left_show_field"
    },
    {
        "tag": "select",
        "field": "is_left",
        "required": 1,
        "event_val": "1",
        "event_type": "=",
        "event_field": "left_field"
    },
    {
        "tag": "select",
        "field": "is_left",
        "required": 1,
        "event_val": "1",
        "event_type": "=",
        "event_field": "left_key_field"
    },
    {
        "tag": "select",
        "field": "is_left",
        "required": 1,
        "event_val": "1",
        "event_type": "=",
        "event_field": "left_type"
    },
    {
        "tag": "select",
        "field": "left_type",
        "required": 1,
        "event_val": "1",
        "event_type": "=",
        "event_field": "left_options"
    },
    {
        "tag": "select",
        "field": "left_type",
        "required": 1,
        "event_val": "2",
        "event_type": "=",
        "event_field": "left_mode"
    }
],
};
